-- GENERATED SPELL FOR [Exarch Admetius] --


function spell0_17658(pUnit, Event) --@Exarch\'s Enchantment,Self--
pUnit:FullCastSpellOnTarget(31609,pUnit)
pUnit:RegisterEvent('Sorts_17658', 676, 1)
end

function Sorts_17658(pUnit, Event)
local choix_sorts_17658 = math.random(0, 0)
if choix_sorts_17658 == 0 then
pUnit:RegisterEvent('spell0_17658', 1, 1)
end
end

function mob17658_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17658', math.random(1500, 3000), 1)
end

function mob17658_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17658_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17658_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17658, 1, 'mob17658_Action')
RegisterUnitEvent(17658, 2, 'mob17658_Leave')
RegisterUnitEvent(17658, 3, 'mob17658_Kill')
RegisterUnitEvent(17658, 4, 'mob17658_Die')
